package cn.wolfcode.wolf2w.controller;

import cn.wolfcode.wolf2w.util.UploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;



@RestController
public class UploadImgAPIController {

    @PostMapping("/coverImageUpload")
    public Object coverImageUpload(MultipartFile pic) throws Exception {
        String path = UploadUtil.uploadAli(pic);
        return path;
    }

}
